import TalkAdd from "@/model/TalkAdd"
import axios from "@/plugins/axios"
import TalkImg from "@/model/TalkImg"
import Result from "@/model/Result"
import Talk from "@/model/Talk"

export default class TalkAPI {
  public static addTalk(content: string, imgs?: TalkImg[]) {
    const data: TalkAdd = new TalkAdd(content, imgs)
    return axios.post('/talk/addTalk', data)
  }

  public static queryTalks() {
    return axios.post('/talk/queryTalks')
  }

  public static queryTalkDetail(talkId: number) {
    return axios.post('/talk/queryTalkDetail?talkId=' + talkId)
  }
}
